package com.wulin.wucut.utils;

import cn.hutool.core.convert.Convert;
import cn.hutool.core.date.CalendarUtil;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.date.LocalDateTimeUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.wulin.wucut.domain.entity.draft.content.Canvases;

import java.time.Duration;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.stream.IntStream;

public class BeanCopy {
    public static <T> T copy(T bean) {
        return (T) JSONObject.parseObject(JSONObject.toJSONString(bean), bean.getClass());
    }

    public static void main(String[] args) {
        
        
    }
}
